<!DOCTYPE html>
<html lang="en"
	  xmlns:th="http://www.thymeleaf.org"
	  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
>
	<head>
		<meta charset="UTF-8">
		<title>论文管理</title>
	</head>
	<body>
		<h1 style="color: blue;">角色管理 <span th:text="${session.currUser.usrName}"/></h1>

	<h3><a href="suser/list">用户列表</a></h3>
	<h3><a href="suser/add">用户添加</a></h3>
	<h3><a href="suser/edit">用户编辑</a></h3>
	<h3><a href="suser/del">用户删除</a></h3>

		<p>循环遍历角色列表 </p>
		<ul>
			<li th:if="${right1.rightType=='Folder'}" th:each="right1:${session.currUser.role.rights}">
				<a href="" th:text="${right1.rightText} + ${right1.rightCode}"></a>
				<ul >
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<li th:if="${right2.rightType=='Document' && right2.rightParentCode==right1.rightCode}"  th:each="right2:${session.currUser.role.rights}"
					>
						<a href="" th:text="${right2.rightText} + ${right2.rightParentCode }" ></a>
					</li>
				</ul>
			</li>
		</ul>

	<h3><a href="slogout" >退出</a></h3>
	</body>
</html>
